#include "calClient.hpp"
#include <memory>

using namespace Client;

static void Usage(string proc)
{
    cout << "\nUsage:\n\t" << proc << " local_port\n\n";
}

// ./tcpServer serverip serverport
int main(int argc, char* argv[])
{
    if(argc != 3)
    {
        Usage(argv[0]);
        exit(1);
    }

    uint16_t serverport = atoi(argv[2]);
    string serverip =argv[1];
    unique_ptr<calClient> tcli(new calClient(serverip, serverport));

    tcli->InitClient();
    tcli->Start();
    
    return 0;
}